Skip to main content

Create a supplier facility for the given organization.

POST 

/partner/v1.0/organizations/:organizationId/facilities

Create a supplier facility for the given organization.

Request​

Path Parameters

    organizationId stringrequired

    The ID of the organization in the Carbon Trail platform.

Body

The supplier facility to create.

    id stringnullable

    The unique identifier of the facility in CarbonTrail.

    organizationId stringnullable

    The unique identifier of the organization the facility belongs to.

    subsidiaryId stringnullable

    The unique identifier of the subsidiary the facility belongs to.

    name stringnullable

    The name of the facility.

    location

    object

    Represents a geographical location where a manufacturing process or material sourcing takes place.

    id stringnullable

    The unique identifier of the location.

    city stringnullable

    The name of the city.

    stateName stringnullable

    The name of the state where the location is situated.

    country stringrequired

    Possible values: non-empty

    The ISO 3166-1 alpha-2 country code.

    countryName stringnullable

    The full name of the country.

    continent stringnullable

    The name of the continent.

    latitude doublenullable

    The latitude coordinate of the location.

    longitude doublenullable

    The longitude coordinate of the location.

    category Ownership (string)

    Possible values: [Owned, Leased To Others, Leased From Others, Franchise, Supplier Factory, Non-Leased Upstream, Non-Leased Downstream]

    type FacilityType (string)

    Possible values: [Unknown, Factory, Warehouse, Retail Store, Office, Service Center, Logistics Center, Outlet Store, Showroom]

    area doublenullable

    The total area of the facility in square meters, when available.

    leasedArea doublenullable

    The leased area of the facility in square meters, when available.

    occupancyRate doublenullable

    The occupancy rate of the facility as a percentage from 0 to 100, when available.

    primaryEmail stringnullable

    The primary contact email address for the facility.

    aliases

    object[]

    nullable

    The aliases associated with the facility, including alternative identifiers.

  • Array [

  • id stringnullable

    The unique identifier of the alias definition in CarbonTrail.

    name stringnullable

    The name of the alias (e.g., "Supplier ID", "Facility ID").

    value stringnullable

    The identifier value associated with the entity for this alias.

  • ]

  • customFieldValues

    object[]

    nullable

    The values of custom fields associated with the facility.

  • Array [

  • oneOf

    Represents a custom field value.

    type

    string

    required

    Possible values: [Text, Select, Multi-Select]

    value stringnullable

    The value of the text custom field.

    customFieldId stringrequired

    Possible values: non-empty

    The unique identifier of the custom field this value is associated with.

  • ]

  • externalIdentities

    object[]

    nullable

    The identifiers of the facility in source systems, used for idempotency to prevent duplicate imports.

  • Array [

  • name stringnullable

    The name of the system (e.g., "SAP", "Workday", "Snowflake") where this ID is from.

    value stringnullable

    The unique identifier value from the system.

  • ]

  • created date-time

    The date and time the facility was created, in UTC.

    updated date-timenullable

    The date and time the facility was last updated, in UTC, when available.

Responses​

Created

Schema

    id stringnullable

    The unique identifier of the facility in CarbonTrail.

    organizationId stringnullable

    The unique identifier of the organization the facility belongs to.

    subsidiaryId stringnullable

    The unique identifier of the subsidiary the facility belongs to.

    name stringnullable

    The name of the facility.

    location

    object

    Represents a geographical location where a manufacturing process or material sourcing takes place.

    id stringnullable

    The unique identifier of the location.

    city stringnullable

    The name of the city.

    stateName stringnullable

    The name of the state where the location is situated.

    country stringrequired

    Possible values: non-empty

    The ISO 3166-1 alpha-2 country code.

    countryName stringnullable

    The full name of the country.

    continent stringnullable

    The name of the continent.

    latitude doublenullable

    The latitude coordinate of the location.

    longitude doublenullable

    The longitude coordinate of the location.

    category Ownership (string)

    Possible values: [Owned, Leased To Others, Leased From Others, Franchise, Supplier Factory, Non-Leased Upstream, Non-Leased Downstream]

    type FacilityType (string)

    Possible values: [Unknown, Factory, Warehouse, Retail Store, Office, Service Center, Logistics Center, Outlet Store, Showroom]

    area doublenullable

    The total area of the facility in square meters, when available.

    leasedArea doublenullable

    The leased area of the facility in square meters, when available.

    occupancyRate doublenullable

    The occupancy rate of the facility as a percentage from 0 to 100, when available.

    primaryEmail stringnullable

    The primary contact email address for the facility.

    aliases

    object[]

    nullable

    The aliases associated with the facility, including alternative identifiers.

  • Array [

  • id stringnullable

    The unique identifier of the alias definition in CarbonTrail.

    name stringnullable

    The name of the alias (e.g., "Supplier ID", "Facility ID").

    value stringnullable

    The identifier value associated with the entity for this alias.

  • ]

  • customFieldValues

    object[]

    nullable

    The values of custom fields associated with the facility.

  • Array [

  • oneOf

    Represents a custom field value.

    type

    string

    required

    Possible values: [Text, Select, Multi-Select]

    value stringnullable

    The value of the text custom field.

    customFieldId stringrequired

    Possible values: non-empty

    The unique identifier of the custom field this value is associated with.

  • ]

  • externalIdentities

    object[]

    nullable

    The identifiers of the facility in source systems, used for idempotency to prevent duplicate imports.

  • Array [

  • name stringnullable

    The name of the system (e.g., "SAP", "Workday", "Snowflake") where this ID is from.

    value stringnullable

    The unique identifier value from the system.

  • ]

  • created date-time

    The date and time the facility was created, in UTC.

    updated date-timenullable

    The date and time the facility was last updated, in UTC, when available.

Loading...